<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<script src="../lib/echarts.min.js"></script>
    <script src="../lib/jquery.min.js"></script>
	</head>
	<body>
		<div style="width: 100%; height: 900px"></div>
		<script>
			var mCharts = echarts.init(document.querySelector('div'))
      $.get('json/map/anhui.json',function (ret) {
        // 注册地图矢量数据
        echarts.registerMap('anhui',ret)
        var option = {
          geo: {
            tyepe: 'map',
            map: 'anhui',
            zoom: 1.2, // 初始化比例
            label: {
              show: true
            },
            roam: true // 设置缩放拖动
    
          }
        }
        mCharts.setOption(option)
      })
     </script>
	</body>
</html>
